<?php

namespace App\Admin\Controllers;

use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Show;
use Encore\Admin\Controllers\AdminController;
use App\Models\NoticeLog;
use Illuminate\Http\Request;

class NoticeLogController extends AdminController
{
	protected $title = 'Notice Log Manager';

	protected function title()
    {
        return $this->title;
    }

    protected function grid()
    {
    	$notice = new NoticeLog();

        $grid = new Grid($notice);

        $grid->column('id', __('ID'))->sortable();
        $grid->column('notice_id', __('Notice ID'));
        $grid->column('output', __('Output'));
        $grid->column('return', __('Return'));
        $grid->column('remote_ip', __('IP'));
        $grid->column('notice_time', __('Send Time'));
        $grid->column('created_at', __('Created at'));
        $grid->column('updated_at', __('Updated at'));

        $grid->disableCreateButton();
        $grid->disableActions();

        return $grid;
    }

}	